<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/Common Module/FlashDisk.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_df4e0e4e72f77ab290fd1a24f190250a.html">Common Module</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle"><div class="title">FlashDisk.c 文件参考</div></div>
</div><!--header-->
<div class="contents">

<p>管理片外 SPI―Flash 的读写, 对接 FATFS 组件  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &lt;string.h&gt;</code><br />
<code>#include &quot;<a class="el" href="_flash_disk_8h_source.html">FlashDisk.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="bsp__init_8h_source.html">bsp_init.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_s_p_i___w_b25_qxx_8h_source.html">SPI_WB25Qxx.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
FlashDisk.c 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="_flash_disk_8c__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2_flash_disk_8c" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2_flash_disk_8c" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_common_01_module_2_flash_disk_8c">
<area shape="rect" title="管理片外 SPI―Flash 的读写, 对接 FATFS 组件" alt="" coords="909,5,1133,75"/>
<area shape="rect" title=" " alt="" coords="831,123,896,148"/>
<area shape="rect" href="_flash_disk_8h.html" title="管理片外 SPI―Flash 的读写, 对接 FATFS 组件" alt="" coords="921,123,1012,148"/>
<area shape="rect" href="bsp__init_8h.html" title="板级硬件外设初始化" alt="" coords="1036,123,1115,148"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8h.html" title="WB25Qxx SPI Flash 驱动程序" alt="" coords="1822,123,1943,148"/>
<area shape="rect" title=" " alt="" coords="724,343,811,368"/>
<area shape="rect" href="version_8h.html" title="版本/目标控制" alt="" coords="1315,269,1388,295"/>
<area shape="rect" href="dev__systick_8h.html" title="系统滴答定时器" alt="" coords="84,269,185,295"/>
<area shape="rect" href="dev__uart_8h.html" title="调试日志串口打印" alt="" coords="210,269,291,295"/>
<area shape="rect" href="dev__bod_8h.html" title="低电压触发配置" alt="" coords="316,269,396,295"/>
<area shape="rect" href="dev__rtc_8h.html" title="RTC 在线计时(No VBAT)" alt="" coords="420,269,494,295"/>
<area shape="rect" href="dev__crc_8h.html" title="硬件 CRC" alt="" coords="518,269,596,295"/>
<area shape="rect" href="dev__sfc_8h.html" title="SPI&#45;Flash Control 硬件专用高速模块" alt="" coords="620,269,696,295"/>
<area shape="rect" href="dev__sdram_8h.html" title="芯片内置 SDRAM" alt="" coords="720,269,815,295"/>
<area shape="rect" href="dev__sdio_8h.html" title="SDIO 驱动 SD 卡" alt="" coords="840,269,922,295"/>
<area shape="rect" href="dev__jpeg_8h.html" title="JPEG 硬件解码" alt="" coords="918,196,1001,221"/>
<area shape="rect" href="dev__dac_8h.html" title="DAC 音频播放" alt="" coords="1109,269,1189,295"/>
<area shape="rect" href="dev__lcd_8h.html" title="LCD 驱动显示" alt="" coords="1076,196,1152,221"/>
<area shape="rect" href="dev__touch_8h.html" title="TP 触摸设备驱动层" alt="" coords="1177,196,1268,221"/>
<area shape="rect" href="dev__sleep__stop_8h.html" title="浅/深睡眠" alt="" coords="1342,196,1465,221"/>
<area shape="rect" href="usbh__user_8h.html" title="USB Host 用户配置" alt="" coords="1489,196,1582,221"/>
<area shape="rect" title=" " alt="" coords="1606,196,1732,221"/>
<area shape="rect" title=" " alt="" coords="1756,196,1880,221"/>
<area shape="rect" title=" " alt="" coords="1905,196,2022,221"/>
<area shape="rect" title=" " alt="" coords="2046,196,2177,221"/>
<area shape="rect" title=" " alt="" coords="2202,196,2323,221"/>
<area shape="rect" title=" " alt="" coords="2347,196,2471,221"/>
<area shape="rect" href="jfif__parser_8h.html" title="jpeg 图片 jfif 格式解析" alt="" coords="997,269,1085,295"/>
<area shape="rect" title=" " alt="" coords="1514,269,1608,295"/>
<area shape="rect" href="usbh__conf_8h.html" title="USB Host Config" alt="" coords="1632,269,1724,295"/>
<area shape="rect" href="usbh__msc__conf_8h.html" title="USB Host MSC 类配置" alt="" coords="1616,343,1740,368"/>
<area shape="rect" title=" " alt="" coords="2495,196,2560,221"/>
</map>
</div>
</div>
<p><a href="_flash_disk_8c_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a129a46ca48c8d54a2652680000bfdffc"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_flash_disk_8c.html#a129a46ca48c8d54a2652680000bfdffc">IO_SPI_ENABLE</a></td></tr>
<tr class="memdesc:a129a46ca48c8d54a2652680000bfdffc"><td class="mdescLeft">&#160;</td><td class="mdescRight">IO-SPI 模块使能宏(采用 IO_SPI 方式写入 SPI-Flash)  <a href="_flash_disk_8c.html#a129a46ca48c8d54a2652680000bfdffc">更多...</a><br /></td></tr>
<tr class="separator:a129a46ca48c8d54a2652680000bfdffc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a10afa6cfd9fc23db2b431ccf9f332f30"><td class="memItemLeft" align="right" valign="top">static __INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_flash_disk_8c.html#a10afa6cfd9fc23db2b431ccf9f332f30">min</a> (uint32_t a, uint32_t b)</td></tr>
<tr class="memdesc:a10afa6cfd9fc23db2b431ccf9f332f30"><td class="mdescLeft">&#160;</td><td class="mdescRight">比较两个值, 并返回较小的那个  <a href="_flash_disk_8c.html#a10afa6cfd9fc23db2b431ccf9f332f30">更多...</a><br /></td></tr>
<tr class="separator:a10afa6cfd9fc23db2b431ccf9f332f30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7655b0f2f5afc564c640878be5a50d41"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_flash_disk_8c.html#a7655b0f2f5afc564c640878be5a50d41">FlashDiskRead</a> (uint32_t addr, uint32_t size, uint8_t *buff)</td></tr>
<tr class="memdesc:a7655b0f2f5afc564c640878be5a50d41"><td class="mdescLeft">&#160;</td><td class="mdescRight">读取数据  <a href="_flash_disk_8c.html#a7655b0f2f5afc564c640878be5a50d41">更多...</a><br /></td></tr>
<tr class="separator:a7655b0f2f5afc564c640878be5a50d41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9c9d4cc9fae5bccc09d1a80c7d42fc7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_flash_disk_8c.html#ac9c9d4cc9fae5bccc09d1a80c7d42fc7">FlashDiskWrite</a> (uint32_t addr, uint32_t size, const uint8_t *buff)</td></tr>
<tr class="memdesc:ac9c9d4cc9fae5bccc09d1a80c7d42fc7"><td class="mdescLeft">&#160;</td><td class="mdescRight">写入数据  <a href="_flash_disk_8c.html#ac9c9d4cc9fae5bccc09d1a80c7d42fc7">更多...</a><br /></td></tr>
<tr class="separator:ac9c9d4cc9fae5bccc09d1a80c7d42fc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ab90dc9341a1459125a15b506cfe35a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_flash_disk_8c.html#a5ab90dc9341a1459125a15b506cfe35a">FlashDiskFlush</a> (void)</td></tr>
<tr class="memdesc:a5ab90dc9341a1459125a15b506cfe35a"><td class="mdescLeft">&#160;</td><td class="mdescRight">刷新脏缓冲区  <a href="_flash_disk_8c.html#a5ab90dc9341a1459125a15b506cfe35a">更多...</a><br /></td></tr>
<tr class="separator:a5ab90dc9341a1459125a15b506cfe35a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:a3a9f0f889d7fd26864b496dd569df89a"><td class="memItemLeft" align="right" valign="top">static volatile uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_flash_disk_8c.html#a3a9f0f889d7fd26864b496dd569df89a">Flash_Block_Addr</a> = 0xFFFFFFFF</td></tr>
<tr class="memdesc:a3a9f0f889d7fd26864b496dd569df89a"><td class="mdescLeft">&#160;</td><td class="mdescRight">实际操作的物理地址偏移  <a href="_flash_disk_8c.html#a3a9f0f889d7fd26864b496dd569df89a">更多...</a><br /></td></tr>
<tr class="separator:a3a9f0f889d7fd26864b496dd569df89a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac59b50f1dca0139b7a79fa6a258f3bbb"><td class="memItemLeft" align="right" valign="top">static volatile uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_flash_disk_8c.html#ac59b50f1dca0139b7a79fa6a258f3bbb">FLASH_Cache_Dirty</a> = 0</td></tr>
<tr class="memdesc:ac59b50f1dca0139b7a79fa6a258f3bbb"><td class="mdescLeft">&#160;</td><td class="mdescRight">脏值标记(0 - 无须刷新 Block; 1 - 需要刷新 Block )  <a href="_flash_disk_8c.html#ac59b50f1dca0139b7a79fa6a258f3bbb">更多...</a><br /></td></tr>
<tr class="separator:ac59b50f1dca0139b7a79fa6a258f3bbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0acf7a08a9d5dea843c6b55601a8cced"><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_flash_disk_8c.html#a0acf7a08a9d5dea843c6b55601a8cced">FLASH_Block_Cache</a> [<a class="el" href="_flash_disk_8h.html#a216f057629f42c4fa1a2d14750ac4bf0">FLASH_CACHE_SIZE</a>]</td></tr>
<tr class="memdesc:a0acf7a08a9d5dea843c6b55601a8cced"><td class="mdescLeft">&#160;</td><td class="mdescRight">实际操作的 Block 区域  <a href="_flash_disk_8c.html#a0acf7a08a9d5dea843c6b55601a8cced">更多...</a><br /></td></tr>
<tr class="separator:a0acf7a08a9d5dea843c6b55601a8cced"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b9f438c87e2cade0b802827c695be38"><td class="memItemLeft" align="right" valign="top">static volatile uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_flash_disk_8c.html#a6b9f438c87e2cade0b802827c695be38">IO_SPI_Switch</a> = 0</td></tr>
<tr class="memdesc:a6b9f438c87e2cade0b802827c695be38"><td class="mdescLeft">&#160;</td><td class="mdescRight">IO-SPI 切换标志( 1 - 使能 IO-SPI 写入; 0 - 使能 SFC 读取)  <a href="_flash_disk_8c.html#a6b9f438c87e2cade0b802827c695be38">更多...</a><br /></td></tr>
<tr class="separator:a6b9f438c87e2cade0b802827c695be38"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >管理片外 SPI―Flash 的读写, 对接 FATFS 组件 </p>
<p >/ </p><dl class="section since"><dt>自从</dt><dd>Change Logs: Date Author Notes 2022-12-08 lzh the first version </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>因 SFC 模块仅支持 4 字节 访问, 故采用如下 Cache 块的方式以实现任意地址/大小读写, 从而绕开对用户层的应用限制.</dd></dl>
<dl class="section attention"><dt>注意</dt><dd></dd></dl>
<p>THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, SYNWIT SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONN- -ECTION WITH THEIR PRODUCTS.</p>
<dl class="section copyright"><dt>版权所有</dt><dd>2012 Synwit Technology </dd></dl>

<p class="definition">在文件 <a class="el" href="_flash_disk_8c_source.html">FlashDisk.c</a> 中定义.</p>
</div><h2 class="groupheader">宏定义说明</h2>
<a id="a129a46ca48c8d54a2652680000bfdffc" name="a129a46ca48c8d54a2652680000bfdffc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a129a46ca48c8d54a2652680000bfdffc">&#9670;&#160;</a></span>IO_SPI_ENABLE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IO_SPI_ENABLE</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>IO-SPI 模块使能宏(采用 IO_SPI 方式写入 SPI-Flash) </p>

<p class="definition">在文件 <a class="el" href="_flash_disk_8c_source.html">FlashDisk.c</a> 第 <a class="el" href="_flash_disk_8c_source.html#l00028">28</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="a10afa6cfd9fc23db2b431ccf9f332f30" name="a10afa6cfd9fc23db2b431ccf9f332f30"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10afa6cfd9fc23db2b431ccf9f332f30">&#9670;&#160;</a></span>min()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static __INLINE uint32_t min </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>比较两个值, 并返回较小的那个 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">a</td><td>: 待比较值一 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">b</td><td>: 待比较值二 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">min</td><td>: 返回较小的值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>内联加速, 相当于宏展开, 优势在于传参类型检查 </dd></dl>

<p class="definition">在文件 <a class="el" href="_flash_disk_8c_source.html">FlashDisk.c</a> 第 <a class="el" href="_flash_disk_8c_source.html#l00055">55</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="_flash_disk_8c_a10afa6cfd9fc23db2b431ccf9f332f30_icgraph.png" border="0" usemap="#a_flash_disk_8c_a10afa6cfd9fc23db2b431ccf9f332f30_icgraph" alt=""/></div>
<map name="a_flash_disk_8c_a10afa6cfd9fc23db2b431ccf9f332f30_icgraph" id="a_flash_disk_8c_a10afa6cfd9fc23db2b431ccf9f332f30_icgraph">
<area shape="rect" title="比较两个值, 并返回较小的那个" alt="" coords="1389,81,1432,107"/>
<area shape="rect" href="_flash_disk_8c.html#a7655b0f2f5afc564c640878be5a50d41" title="读取数据" alt="" coords="1231,56,1341,81"/>
<area shape="rect" href="_flash_disk_8c.html#ac9c9d4cc9fae5bccc09d1a80c7d42fc7" title="写入数据" alt="" coords="1068,107,1179,132"/>
<area shape="rect" href="_mass_storage_8c.html#a27d5eea78a599a6b45519475e677ef2c" title=" " alt="" coords="1064,5,1183,31"/>
<area shape="rect" href="_mass_storage_8c.html#acc63e729ab9145b644fc4da28a63636e" title=" " alt="" coords="884,56,1016,81"/>
<area shape="rect" href="_mass_storage_8c.html#a38c26073ef07063ed778df5fb292fce3" title=" " alt="" coords="900,5,1000,31"/>
<area shape="rect" href="ui__update_8c.html#a8c94ec74d3a5db5ae3daed2ce3a5feaa" title="USB Device MSC 处理线程" alt="" coords="669,56,836,81"/>
<area shape="rect" href="ui__update_8c.html#ac4bb8b84a1ae2abc7bd0419c4345bca2" title="选择不同加载方式后, 由此函数执行分支跳转" alt="" coords="492,56,621,81"/>
<area shape="rect" href="ui__update_8c.html#a4b62aef18e10709cce125faee1b7dd52" title="文件管理器" alt="" coords="353,56,444,81"/>
<area shape="rect" href="ui__update_8c.html#aea66c53fcc188fefaa3470555db6aa05" title="启动 UI 引导加载界面, 挂载文件系统以实现 UI 素材导入/更新" alt="" coords="227,56,305,81"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,56,179,81"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,56,56,81"/>
</map>
</div>

</div>
</div>
<a id="a7655b0f2f5afc564c640878be5a50d41" name="a7655b0f2f5afc564c640878be5a50d41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7655b0f2f5afc564c640878be5a50d41">&#9670;&#160;</a></span>FlashDiskRead()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FlashDiskRead </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buff</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>读取数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">addr</td><td>: 待读数据物理地址 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>: 待读数据字节大小 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">addr</td><td>: 存储读取数据区域 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>/ </dd></dl>
<dl class="section note"><dt>注解</dt><dd>本函数依赖 memcpy()，故 MicroLIB-C 会影响该处拷贝效率 </dd></dl>

<p class="definition">在文件 <a class="el" href="_flash_disk_8c_source.html">FlashDisk.c</a> 第 <a class="el" href="_flash_disk_8c_source.html#l00071">71</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="_flash_disk_8c_a7655b0f2f5afc564c640878be5a50d41_cgraph.png" border="0" usemap="#a_flash_disk_8c_a7655b0f2f5afc564c640878be5a50d41_cgraph" alt=""/></div>
<map name="a_flash_disk_8c_a7655b0f2f5afc564c640878be5a50d41_cgraph" id="a_flash_disk_8c_a7655b0f2f5afc564c640878be5a50d41_cgraph">
<area shape="rect" title="读取数据" alt="" coords="5,227,116,252"/>
<area shape="rect" href="_flash_disk_8c.html#a5ab90dc9341a1459125a15b506cfe35a" title="刷新脏缓冲区" alt="" coords="164,177,276,203"/>
<area shape="rect" href="_flash_disk_8c.html#a10afa6cfd9fc23db2b431ccf9f332f30" title="比较两个值, 并返回较小的那个" alt="" coords="199,227,241,252"/>
<area shape="rect" href="dev__sfc_8c.html#aad5d116153c77313a1212733b556a578" title="初始化 SFC 将 外挂的SPI&#45;Flash 映射至 MCU 总线地址上" alt="" coords="189,276,251,301"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a65571e7929b299af3a763c206a2c98b5" title="擦除 WB25Qxx 指定扇区地址" alt="" coords="324,55,485,80"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a0465c5f017965876cf6ff8859eb2731f" title="初始化 WB25Qxx 使用的 SPI 接口, 并读取芯片 ID 等信息以判断其是否是 WB25Qxx 芯片" alt="" coords="351,153,458,179"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a6af72df055a5bc71064719f68842f515" title="向 WB25Qxx 指定地址处写入指定个字节数据(写入前须保证待写入区域已被擦空)" alt="" coords="329,203,480,228"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a39809b92887312675a23a33bf9329fce" title="芯片忙检测(执行擦除、写入操作后需要执行忙检测以判断芯片是否已经完成操作)" alt="" coords="569,55,699,80"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#ae31db601e8f25e65389adda808c61e8d" title="设置 WEL 位, 使能写入(必须在每个擦除、写入状态寄存器和擦除/编程安全寄存器指令之前设置)" alt="" coords="551,5,717,31"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a04c55a0ea26c3794552069171a06f868" title="进入 QPI 模式" alt="" coords="559,104,709,129"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a8f90491088e0e7053d211def3f87a330" title="读取芯片 JEDEC ID" alt="" coords="541,153,727,179"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a026120f0fec011e2c302b114b5961b55" title="读取芯片厂商和设备 ID" alt="" coords="533,203,735,243"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a8fa23417edd7b0324ad2a7f77913ed3a" title="设置 QPI 模式下适应对最大读取频率或最小数据访问延迟的读等待周期." alt="" coords="547,267,721,307"/>
<area shape="rect" href="dev__sfc_8c.html#aaa274c7312ab8789f8ad8f2feb6075dd" title="配置 SFC 模块以建立与 SPI&#45;Flash 的通讯" alt="" coords="365,276,445,301"/>
<area shape="rect" href="dev__sfc_8c.html#a3e07babe174017b09f2d82c4951172c8" title="配置 SFC 专用驱动端口" alt="" coords="588,332,680,357"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="_flash_disk_8c_a7655b0f2f5afc564c640878be5a50d41_icgraph.png" border="0" usemap="#a_flash_disk_8c_a7655b0f2f5afc564c640878be5a50d41_icgraph" alt=""/></div>
<map name="a_flash_disk_8c_a7655b0f2f5afc564c640878be5a50d41_icgraph" id="a_flash_disk_8c_a7655b0f2f5afc564c640878be5a50d41_icgraph">
<area shape="rect" title="读取数据" alt="" coords="1231,29,1341,55"/>
<area shape="rect" href="_mass_storage_8c.html#a27d5eea78a599a6b45519475e677ef2c" title=" " alt="" coords="1064,55,1183,80"/>
<area shape="rect" href="_mass_storage_8c.html#acc63e729ab9145b644fc4da28a63636e" title=" " alt="" coords="884,5,1016,31"/>
<area shape="rect" href="_mass_storage_8c.html#a38c26073ef07063ed778df5fb292fce3" title=" " alt="" coords="900,55,1000,80"/>
<area shape="rect" href="ui__update_8c.html#a8c94ec74d3a5db5ae3daed2ce3a5feaa" title="USB Device MSC 处理线程" alt="" coords="669,5,836,31"/>
<area shape="rect" href="ui__update_8c.html#ac4bb8b84a1ae2abc7bd0419c4345bca2" title="选择不同加载方式后, 由此函数执行分支跳转" alt="" coords="492,5,621,31"/>
<area shape="rect" href="ui__update_8c.html#a4b62aef18e10709cce125faee1b7dd52" title="文件管理器" alt="" coords="353,5,444,31"/>
<area shape="rect" href="ui__update_8c.html#aea66c53fcc188fefaa3470555db6aa05" title="启动 UI 引导加载界面, 挂载文件系统以实现 UI 素材导入/更新" alt="" coords="227,5,305,31"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,5,179,31"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,5,56,31"/>
</map>
</div>

</div>
</div>
<a id="ac9c9d4cc9fae5bccc09d1a80c7d42fc7" name="ac9c9d4cc9fae5bccc09d1a80c7d42fc7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9c9d4cc9fae5bccc09d1a80c7d42fc7">&#9670;&#160;</a></span>FlashDiskWrite()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FlashDiskWrite </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>buff</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>写入数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">addr</td><td>: 待写入数据物理地址 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>: 待写入数据字节大小 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">addr</td><td>: 待写入数据源 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>/ </dd></dl>
<dl class="section note"><dt>注解</dt><dd>本函数依赖 memcpy()，故 MicroLIB-C 会影响该处拷贝效率, 实际写入发生在 <a class="el" href="_flash_disk_8c.html#a5ab90dc9341a1459125a15b506cfe35a" title="刷新脏缓冲区">FlashDiskFlush()</a> 处 </dd></dl>

<p class="definition">在文件 <a class="el" href="_flash_disk_8c_source.html">FlashDisk.c</a> 第 <a class="el" href="_flash_disk_8c_source.html#l00116">116</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="_flash_disk_8c_ac9c9d4cc9fae5bccc09d1a80c7d42fc7_cgraph.png" border="0" usemap="#a_flash_disk_8c_ac9c9d4cc9fae5bccc09d1a80c7d42fc7_cgraph" alt=""/></div>
<map name="a_flash_disk_8c_ac9c9d4cc9fae5bccc09d1a80c7d42fc7_cgraph" id="a_flash_disk_8c_ac9c9d4cc9fae5bccc09d1a80c7d42fc7_cgraph">
<area shape="rect" title="写入数据" alt="" coords="5,227,116,252"/>
<area shape="rect" href="_flash_disk_8c.html#a5ab90dc9341a1459125a15b506cfe35a" title="刷新脏缓冲区" alt="" coords="164,177,276,203"/>
<area shape="rect" href="_flash_disk_8c.html#a10afa6cfd9fc23db2b431ccf9f332f30" title="比较两个值, 并返回较小的那个" alt="" coords="199,227,241,252"/>
<area shape="rect" href="dev__sfc_8c.html#aad5d116153c77313a1212733b556a578" title="初始化 SFC 将 外挂的SPI&#45;Flash 映射至 MCU 总线地址上" alt="" coords="189,276,251,301"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a65571e7929b299af3a763c206a2c98b5" title="擦除 WB25Qxx 指定扇区地址" alt="" coords="324,55,485,80"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a0465c5f017965876cf6ff8859eb2731f" title="初始化 WB25Qxx 使用的 SPI 接口, 并读取芯片 ID 等信息以判断其是否是 WB25Qxx 芯片" alt="" coords="351,153,458,179"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a6af72df055a5bc71064719f68842f515" title="向 WB25Qxx 指定地址处写入指定个字节数据(写入前须保证待写入区域已被擦空)" alt="" coords="329,203,480,228"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a39809b92887312675a23a33bf9329fce" title="芯片忙检测(执行擦除、写入操作后需要执行忙检测以判断芯片是否已经完成操作)" alt="" coords="569,55,699,80"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#ae31db601e8f25e65389adda808c61e8d" title="设置 WEL 位, 使能写入(必须在每个擦除、写入状态寄存器和擦除/编程安全寄存器指令之前设置)" alt="" coords="551,5,717,31"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a04c55a0ea26c3794552069171a06f868" title="进入 QPI 模式" alt="" coords="559,104,709,129"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a8f90491088e0e7053d211def3f87a330" title="读取芯片 JEDEC ID" alt="" coords="541,153,727,179"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a026120f0fec011e2c302b114b5961b55" title="读取芯片厂商和设备 ID" alt="" coords="533,203,735,243"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a8fa23417edd7b0324ad2a7f77913ed3a" title="设置 QPI 模式下适应对最大读取频率或最小数据访问延迟的读等待周期." alt="" coords="547,267,721,307"/>
<area shape="rect" href="dev__sfc_8c.html#aaa274c7312ab8789f8ad8f2feb6075dd" title="配置 SFC 模块以建立与 SPI&#45;Flash 的通讯" alt="" coords="365,276,445,301"/>
<area shape="rect" href="dev__sfc_8c.html#a3e07babe174017b09f2d82c4951172c8" title="配置 SFC 专用驱动端口" alt="" coords="588,332,680,357"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="_flash_disk_8c_ac9c9d4cc9fae5bccc09d1a80c7d42fc7_icgraph.png" border="0" usemap="#a_flash_disk_8c_ac9c9d4cc9fae5bccc09d1a80c7d42fc7_icgraph" alt=""/></div>
<map name="a_flash_disk_8c_ac9c9d4cc9fae5bccc09d1a80c7d42fc7_icgraph" id="a_flash_disk_8c_ac9c9d4cc9fae5bccc09d1a80c7d42fc7_icgraph">
<area shape="rect" title="写入数据" alt="" coords="1064,5,1175,31"/>
<area shape="rect" href="_mass_storage_8c.html#acc63e729ab9145b644fc4da28a63636e" title=" " alt="" coords="884,5,1016,31"/>
<area shape="rect" href="ui__update_8c.html#a8c94ec74d3a5db5ae3daed2ce3a5feaa" title="USB Device MSC 处理线程" alt="" coords="669,5,836,31"/>
<area shape="rect" href="ui__update_8c.html#ac4bb8b84a1ae2abc7bd0419c4345bca2" title="选择不同加载方式后, 由此函数执行分支跳转" alt="" coords="492,5,621,31"/>
<area shape="rect" href="ui__update_8c.html#a4b62aef18e10709cce125faee1b7dd52" title="文件管理器" alt="" coords="353,5,444,31"/>
<area shape="rect" href="ui__update_8c.html#aea66c53fcc188fefaa3470555db6aa05" title="启动 UI 引导加载界面, 挂载文件系统以实现 UI 素材导入/更新" alt="" coords="227,5,305,31"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,5,179,31"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,5,56,31"/>
</map>
</div>

</div>
</div>
<a id="a5ab90dc9341a1459125a15b506cfe35a" name="a5ab90dc9341a1459125a15b506cfe35a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ab90dc9341a1459125a15b506cfe35a">&#9670;&#160;</a></span>FlashDiskFlush()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void FlashDiskFlush </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>刷新脏缓冲区 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>/ </dd></dl>
<dl class="section pre"><dt>前置条件</dt><dd>本函数须轮询调用 </dd></dl>

<p class="definition">在文件 <a class="el" href="_flash_disk_8c_source.html">FlashDisk.c</a> 第 <a class="el" href="_flash_disk_8c_source.html#l00162">162</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="_flash_disk_8c_a5ab90dc9341a1459125a15b506cfe35a_cgraph.png" border="0" usemap="#a_flash_disk_8c_a5ab90dc9341a1459125a15b506cfe35a_cgraph" alt=""/></div>
<map name="a_flash_disk_8c_a5ab90dc9341a1459125a15b506cfe35a_cgraph" id="a_flash_disk_8c_a5ab90dc9341a1459125a15b506cfe35a_cgraph">
<area shape="rect" title="刷新脏缓冲区" alt="" coords="5,129,117,155"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a65571e7929b299af3a763c206a2c98b5" title="擦除 WB25Qxx 指定扇区地址" alt="" coords="165,55,327,80"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a0465c5f017965876cf6ff8859eb2731f" title="初始化 WB25Qxx 使用的 SPI 接口, 并读取芯片 ID 等信息以判断其是否是 WB25Qxx 芯片" alt="" coords="193,129,299,155"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a6af72df055a5bc71064719f68842f515" title="向 WB25Qxx 指定地址处写入指定个字节数据(写入前须保证待写入区域已被擦空)" alt="" coords="171,179,321,204"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a39809b92887312675a23a33bf9329fce" title="芯片忙检测(执行擦除、写入操作后需要执行忙检测以判断芯片是否已经完成操作)" alt="" coords="411,55,540,80"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#ae31db601e8f25e65389adda808c61e8d" title="设置 WEL 位, 使能写入(必须在每个擦除、写入状态寄存器和擦除/编程安全寄存器指令之前设置)" alt="" coords="392,5,559,31"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a04c55a0ea26c3794552069171a06f868" title="进入 QPI 模式" alt="" coords="401,104,550,129"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a8f90491088e0e7053d211def3f87a330" title="读取芯片 JEDEC ID" alt="" coords="382,153,569,179"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a026120f0fec011e2c302b114b5961b55" title="读取芯片厂商和设备 ID" alt="" coords="375,203,576,243"/>
<area shape="rect" href="_s_p_i___w_b25_qxx_8c.html#a8fa23417edd7b0324ad2a7f77913ed3a" title="设置 QPI 模式下适应对最大读取频率或最小数据访问延迟的读等待周期." alt="" coords="388,267,563,307"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="_flash_disk_8c_a5ab90dc9341a1459125a15b506cfe35a_icgraph.png" border="0" usemap="#a_flash_disk_8c_a5ab90dc9341a1459125a15b506cfe35a_icgraph" alt=""/></div>
<map name="a_flash_disk_8c_a5ab90dc9341a1459125a15b506cfe35a_icgraph" id="a_flash_disk_8c_a5ab90dc9341a1459125a15b506cfe35a_icgraph">
<area shape="rect" title="刷新脏缓冲区" alt="" coords="1389,55,1501,80"/>
<area shape="rect" href="_flash_disk_8c.html#a7655b0f2f5afc564c640878be5a50d41" title="读取数据" alt="" coords="1231,55,1341,80"/>
<area shape="rect" href="ui__update_8c.html#a8c94ec74d3a5db5ae3daed2ce3a5feaa" title="USB Device MSC 处理线程" alt="" coords="669,30,836,55"/>
<area shape="rect" href="_flash_disk_8c.html#ac9c9d4cc9fae5bccc09d1a80c7d42fc7" title="写入数据" alt="" coords="1068,131,1179,156"/>
<area shape="rect" href="_mass_storage_8c.html#a27d5eea78a599a6b45519475e677ef2c" title=" " alt="" coords="1064,30,1183,55"/>
<area shape="rect" href="_mass_storage_8c.html#acc63e729ab9145b644fc4da28a63636e" title=" " alt="" coords="884,79,1016,104"/>
<area shape="rect" href="_mass_storage_8c.html#a38c26073ef07063ed778df5fb292fce3" title=" " alt="" coords="900,30,1000,55"/>
<area shape="rect" href="ui__update_8c.html#ac4bb8b84a1ae2abc7bd0419c4345bca2" title="选择不同加载方式后, 由此函数执行分支跳转" alt="" coords="492,30,621,55"/>
<area shape="rect" href="ui__update_8c.html#a4b62aef18e10709cce125faee1b7dd52" title="文件管理器" alt="" coords="353,30,444,55"/>
<area shape="rect" href="ui__update_8c.html#aea66c53fcc188fefaa3470555db6aa05" title="启动 UI 引导加载界面, 挂载文件系统以实现 UI 素材导入/更新" alt="" coords="227,30,305,55"/>
<area shape="rect" href="main_8c.html#a8f1efe6291a27ae9b326f0c8a236c102" title="Go to User App Execute" alt="" coords="104,30,179,55"/>
<area shape="rect" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe" title="C_Main" alt="" coords="5,30,56,55"/>
</map>
</div>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="a3a9f0f889d7fd26864b496dd569df89a" name="a3a9f0f889d7fd26864b496dd569df89a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a9f0f889d7fd26864b496dd569df89a">&#9670;&#160;</a></span>Flash_Block_Addr</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">volatile uint32_t Flash_Block_Addr = 0xFFFFFFFF</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实际操作的物理地址偏移 </p>

<p class="definition">在文件 <a class="el" href="_flash_disk_8c_source.html">FlashDisk.c</a> 第 <a class="el" href="_flash_disk_8c_source.html#l00034">34</a> 行定义.</p>

</div>
</div>
<a id="ac59b50f1dca0139b7a79fa6a258f3bbb" name="ac59b50f1dca0139b7a79fa6a258f3bbb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac59b50f1dca0139b7a79fa6a258f3bbb">&#9670;&#160;</a></span>FLASH_Cache_Dirty</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">volatile uint32_t FLASH_Cache_Dirty = 0</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>脏值标记(0 - 无须刷新 Block; 1 - 需要刷新 Block ) </p>

<p class="definition">在文件 <a class="el" href="_flash_disk_8c_source.html">FlashDisk.c</a> 第 <a class="el" href="_flash_disk_8c_source.html#l00036">36</a> 行定义.</p>

</div>
</div>
<a id="a0acf7a08a9d5dea843c6b55601a8cced" name="a0acf7a08a9d5dea843c6b55601a8cced"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0acf7a08a9d5dea843c6b55601a8cced">&#9670;&#160;</a></span>FLASH_Block_Cache</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t FLASH_Block_Cache[<a class="el" href="_flash_disk_8h.html#a216f057629f42c4fa1a2d14750ac4bf0">FLASH_CACHE_SIZE</a>]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实际操作的 Block 区域 </p>

<p class="definition">在文件 <a class="el" href="_flash_disk_8c_source.html">FlashDisk.c</a> 第 <a class="el" href="_flash_disk_8c_source.html#l00038">38</a> 行定义.</p>

</div>
</div>
<a id="a6b9f438c87e2cade0b802827c695be38" name="a6b9f438c87e2cade0b802827c695be38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b9f438c87e2cade0b802827c695be38">&#9670;&#160;</a></span>IO_SPI_Switch</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">volatile uint8_t IO_SPI_Switch = 0</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>IO-SPI 切换标志( 1 - 使能 IO-SPI 写入; 0 - 使能 SFC 读取) </p>

<p class="definition">在文件 <a class="el" href="_flash_disk_8c_source.html">FlashDisk.c</a> 第 <a class="el" href="_flash_disk_8c_source.html#l00045">45</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
